Skip to content

fix(ci): align fleet-rust-tests contract with main-only CI policy (#9531) - #9543

Merged
dezren39 merged 1 commit into
mainfrom
queue/16074-9531-fleet-rust-tests-contract
Nov 13, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/16074-9531-fleet-rust-tests-contract

Conversation

@dezren39

@dezren39 dezren39 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Fixes #9531.

Problem

Main run 43392267205 failed the Contract — wiring matches registry, policy, and toolchain pin (#8941) step of basic: fleet Rust workspace tests with:

  • fleet-rust-tests contract: workflow does not declare the pull_request trigger
  • ci-policy.md names no tier row for fleet-rust-tests

The main-only CI policy (.github/ci-policy.md, owner ruling 2026-11-13) removed PR triggers; the #8941 contract checker still required one, and the policy's agreement registry had no fleet-rust-tests row. Per #9531, the fix aligns the checker and the policy row with the main-only policy — no PR trigger is re-added.

Changes

  • .github/scripts/check-fleet-rust-tests.sh: trigger leg now requires push + workflow_dispatch and fails if pull_request / pull_request_target / merge_group is declared; header contract updated to match.
  • .github/scripts/check-fleet-rust-tests.test.sh: two new mutations — a workflow with a pull_request trigger fails, and a workflow without the push trigger fails.
  • .github/ci-policy.md: agreement-registry row | fleet-rust-tests | main push, path gated | yes |.
  • .github/workflows/fleet-rust-tests.yml: stale concurrency comment updated (no PR runs exist under the main-only policy).

Third leg found during verification (same contract, current origin/main)

On current origin/main the contract step had a third disagreement not present at run 43392267205's head: pkgs/fleet/rust-toolchain.toml pins channel 1.99.1 while the workflow installed and tested with 1.99.0. The workflow now installs and tests with the pinned 1.99.1 (the pin stays the source of truth). Recorded on #9531.

Verification (on this branch, laptop)

  • bash .github/scripts/check-fleet-rust-tests.sh → fleet-rust-tests contract: OK
  • bash .github/scripts/check-fleet-rust-tests.test.sh → all 7 cases ok, check-fleet-rust-tests.test: OK
  • bash .github/scripts/check-ci-policy-agreement.sh → ci-policy-agreement: OK

Queue task 16074, lane code-b.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

)

The contract checker still required a pull_request trigger that the main-only CI policy (2026-11-13) removed, and ci-policy.md had no tier row for fleet-rust-tests, so the contract step failed on main (run 43392267205). The checker now requires push + workflow_dispatch and forbids PR triggers; its tests gain pr-trigger and no-push mutations. ci-policy.md gains the fleet-rust-tests agreement-registry row (main push, path gated).

Also fixes a third leg of the same contract found on current origin/main: pkgs/fleet/rust-toolchain.toml pins 1.99.1 while the workflow installed and tested with 1.99.0; the workflow now uses the pinned 1.99.1.
@dezren39
dezren39 requested a review from a team as a code owner November 13, 2026 11:58
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T11:58:34.247941Z
We couldn’t complete this review. Comment @codex review to try again.
30266ec PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 696a28e0-8f92-4334-9174-d4cfdb592ae1
Commits

Reviewing files that changed from the base of the PR and between cc72634 and 30266ec.

Files selected for processing: 4

  • .github/ci-policy.md
  • .github/scripts/check-fleet-rust-tests.sh
  • .github/scripts/check-fleet-rust-tests.test.sh
  • .github/workflows/fleet-rust-tests.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

developing-today/code / fleet-rust-tests: main run 43392267205 fails contract (no pull_request trigger, no ci-policy tier row)

1 participant